package com.chenju.javastatic.repository;

import com.chenju.javastatic.domain.node.MethodNode;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;

public interface MethodRepository extends Neo4jRepository<MethodNode, Long> {
    @Query("MATCH (m:ClassNode), (n:MethodNode) WHERE n.classId = m.id MERGE (m)-[r:CON]->(n)")
    void createRelationShipToClass();
}
